home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / acpi / screenblank.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2009-10-13  |  359b  |  16 lines

  1. #!/bin/sh
  2.  
  3. test -f /usr/share/acpi-support/key-constants || exit 0
  4.  
  5. . /etc/default/acpi-support
  6. . /usr/share/acpi-support/power-funcs
  7.  
  8. for x in /tmp/.X11-unix/*; do
  9.     displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
  10.     getXuser;
  11.     if [ x"$XAUTHORITY" != x"" ]; then
  12.         export DISPLAY=":$displaynum"
  13.     . /usr/share/acpi-support/screenblank
  14.     fi
  15. done
  16.